//
//  TL_ReportTableViewCell.m
//  WXReader
//
//  Created by Andrew on 2021/12/9.
//  Copyright © 2021 Andrew. All rights reserved.
//

#import "TL_ReportTableViewCell.h"

@implementation TL_ReportTableViewCell
{
    UILabel *tipsLabel;
}

- (void)createSubviews
{
    [super createSubviews];
    
    tipsLabel = [TL_UIFactory labelWithBackgroundColor:UIColor.clearColor font:SYSTEM_FONT(13) textColor:kBlackColor];
    tipsLabel.numberOfLines = 2;
    [self.contentView addSubview:tipsLabel];
    
    [tipsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.contentView.mas_left).with.offset(kMargin);
        make.right.mas_equalTo(self.contentView.mas_right).with.offset(- kMargin);
        make.top.mas_equalTo(self.contentView.mas_top);
        make.height.mas_equalTo(44);
        make.bottom.mas_equalTo(self.contentView.mas_bottom).priorityLow();
    }];
}

- (void)setPayFailListModel:(TL_PayFailListModel *)payFailListModel
{
    _payFailListModel = payFailListModel;
    
    tipsLabel.text = payFailListModel.reason?:@"";
}

@end
